Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match vimeo direct urls #1818

Closed
wants to merge 1 commit into from
Closed

Conversation

H1D
Copy link
Contributor

@H1D H1D commented Jan 21, 2015

Sometimes video.js parse url to detect file type. There was a bug in parsing regexp. Details #1813

Hope stable is the right branch to merge. contrib doesn't work for me due to this bug contrib/contrib#11

@@ -324,7 +324,7 @@ vjs.Html5.nativeSourceHandler.canHandleSource = function(source){
return canPlayType(source.type);
} else if (source.src) {
// If no type, fall back to checking 'video/[EXTENSION]'
match = source.src.match(/\.([^\/\?]+)(\?[^\/]+)?$/i);
match = source.src.match(/\.([^.\/\?]+)(\?[^\/]+)?$/i);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking the period needed to be escaped, but apparently not.

@heff
Copy link
Member

heff commented Jan 22, 2015

looks good!

@mmcc
Copy link
Member

mmcc commented Jan 22, 2015

nice. looks good to me.

@heff heff closed this in c8781cf Jan 23, 2015
@H1D H1D deleted the hotfix/vimeo-urls-match branch September 12, 2017 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants